package com.jh.paymentchannel.business.impl;

import com.jh.paymentchannel.pojo.SFAuth;
import org.springframework.transaction.annotation.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jh.paymentchannel.business.SFAuthBusiness;
import com.jh.paymentchannel.repository.SFAuthRepository;
@Service
public class SFAuthBusinessImpl implements SFAuthBusiness {
	@Autowired
	private SFAuthRepository sfAuthRepository;

	@Override
	@Transactional
	public Object save(SFAuth model) {
		return sfAuthRepository.save(model);
	}

	@Override
	public SFAuth findSFAuthByPhone(String phone) {
		return sfAuthRepository.findSFAuthByPhone(phone);
	}
	
	@Transactional
	@Override
	public SFAuth updateSFAuth(SFAuth sfAuth) {
		return sfAuthRepository.save(sfAuth);
	}

}
